package com.cskaoyan.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cskaoyan.mall.commons.result.ResponseData;
import com.cskaoyan.mall.commons.result.ResponseUtil;
import com.cskaoyan.user.service.UserVerifyService;

/**
 * @author zyf
 * @since 2022/06/18 14:29
 */
@RestController
@RequestMapping("/user")
public class VerifyController {
    @Autowired
    UserVerifyService userVerifyService;
    @GetMapping("/verify")
    public ResponseData verify(String uuid, String username){
        userVerifyService.verify(uuid,username);
        return new ResponseUtil<>().setData(null);
    }

}
